﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Common;
    using Extra.ERP;

    public class xucTimekeeperTotalYear : Common.xucBase
    {
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarEditItem bbiFilter;
        private BarButtonItem bbiFormula;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiReload;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private GridColumn colEmployeeCode;
        private GridColumn colFirstName;
        private GridColumn colLastName;
        private GridColumn colMonth1;
        private GridColumn colMonth10;
        private GridColumn colMonth11;
        private GridColumn colMonth12;
        private GridColumn colMonth2;
        private GridColumn colMonth3;
        private GridColumn colMonth4;
        private GridColumn colMonth5;
        private GridColumn colMonth6;
        private GridColumn colMonth7;
        private GridColumn colMonth8;
        private GridColumn colMonth9;
        private GridColumn colSymbolCode;
        private GridColumn colSymbolName;
        private GridColumn colTotal;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private GridView gbList;
        private GridControl gcList;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        private GridColumn gridColumn3;
        private GridColumn gridColumn4;
        private GridColumn gridColumn5;
        private GridView gridView1;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private string m_Code = MyLogin.Code;
        private int m_Filter = 0;
        private int m_Level = MyLogin.Level;
        private int m_Year = 0;
        private RepositoryItemImageComboBox repBranch;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemImageComboBox repDepartment;
        private RepositoryItemGridLookUpEdit repEmployee;
        private RepositoryItemComboBox repEmployeeName;
        private RepositoryItemImageComboBox repFilter;
        private RepositoryItemImageComboBox repGroup;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private GridView repositoryItemGridLookUpEdit1View;
        private RepositoryItemTimeEdit repYear;
        private xucOrganization xucOrganization1;

        public event ClosedHander Closed;

        public xucTimekeeperTotalYear()
        {
            this.InitializeComponent();
            this.Init();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (base.ParentForm != null)
            {
                base.ParentForm.Close();
            }
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Tổng hợp thống k\x00ea chấm c\x00f4ng theo năm", "Xuất");
            base.Export();
        }

        private void bbiFilter_EditValueChanged(object sender, EventArgs e)
        {
            this.m_Filter = int.Parse(this.bbiFilter.EditValue.ToString());
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            SYS_LOG.Insert("Tổng hợp thống k\x00ea chấm c\x00f4ng theo năm", "In");
            xfmReport report = new xfmReport();
            rptTimekeeperTotalYear xtraReport = new rptTimekeeperTotalYear(this.m_Level, this.m_Code, this.m_Year, this.m_Filter);
            report.SetTitle("Bảng Thống K\x00ea Chấm C\x00f4ng Năm " + this.m_Year.ToString());
            report.ShowPrintPreview(xtraReport);
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu....");
            this.LoadSymbol();
            this.bbiFilter.EditValue = this.m_Filter;
            this.bbiFilter.EditValueChanged += new EventHandler(this.bbiFilter_EditValueChanged);
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.repYear.EditValueChanging += new ChangingEventHandler(this.repYear_EditValueChanging);
            this.repYear.EditValueChanged += new EventHandler(this.repYear_EditValueChanged);
            this.LoadGrid(this.m_Level, this.m_Code);
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, Organization o) {
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            SuperToolTip tip = new SuperToolTip();
            ToolTipItem item = new ToolTipItem();
            SuperToolTip tip2 = new SuperToolTip();
            ToolTipItem item2 = new ToolTipItem();
            SuperToolTip tip3 = new SuperToolTip();
            ToolTipItem item3 = new ToolTipItem();
            SuperToolTip tip4 = new SuperToolTip();
            ToolTipItem item4 = new ToolTipItem();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucTimekeeperTotalYear));
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbiFilter = new BarEditItem();
            this.repFilter = new RepositoryItemImageComboBox();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiFormula = new BarButtonItem();
            this.repEmployeeName = new RepositoryItemComboBox();
            this.repEmployee = new RepositoryItemGridLookUpEdit();
            this.repositoryItemGridLookUpEdit1View = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.repDepartment = new RepositoryItemImageComboBox();
            this.repBranch = new RepositoryItemImageComboBox();
            this.repGroup = new RepositoryItemImageComboBox();
            this.gridView1 = new GridView();
            this.colSymbolCode = new GridColumn();
            this.colSymbolName = new GridColumn();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gcList = new GridControl();
            this.gbList = new GridView();
            this.gridColumn3 = new GridColumn();
            this.gridColumn4 = new GridColumn();
            this.gridColumn5 = new GridColumn();
            this.colMonth1 = new GridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colMonth2 = new GridColumn();
            this.colMonth3 = new GridColumn();
            this.colMonth4 = new GridColumn();
            this.colMonth5 = new GridColumn();
            this.colMonth6 = new GridColumn();
            this.colMonth7 = new GridColumn();
            this.colMonth8 = new GridColumn();
            this.colMonth9 = new GridColumn();
            this.colMonth10 = new GridColumn();
            this.colMonth11 = new GridColumn();
            this.colMonth12 = new GridColumn();
            this.colTotal = new GridColumn();
            this.barManager1.BeginInit();
            this.repYear.BeginInit();
            this.repFilter.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.imageCollection2.BeginInit();
            this.repEmployeeName.BeginInit();
            this.repEmployee.BeginInit();
            this.repositoryItemGridLookUpEdit1View.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.repDepartment.BeginInit();
            this.repBranch.BeginInit();
            this.repGroup.BeginInit();
            this.gridView1.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repCalculator.BeginInit();
            base.SuspendLayout();
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiPrint, this.bbiReload, this.bbiFormula, this.bbiClose, this.bbeYear, this.bbiExport, this.bbiFilter });
            this.barManager1.MaxItemId = 0x1d;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repYear, this.repEmployeeName, this.repEmployee, this.repositoryItemComboBox1, this.repDepartment, this.repBranch, this.repGroup, this.repFilter });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFilter, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeYear.Caption = "Năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 14;
            this.bbeYear.Name = "bbeYear";
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbiFilter.Caption = "Thống K\x00ea Theo:";
            this.bbiFilter.Edit = this.repFilter;
            this.bbiFilter.Id = 0x1c;
            this.bbiFilter.Name = "bbiFilter";
            this.bbiFilter.Width = 220;
            this.repFilter.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repFilter.Appearance.Options.UseFont = true;
            this.repFilter.AutoHeight = false;
            this.repFilter.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repFilter.Items.AddRange(new ImageComboBoxItem[] { 
                new ImageComboBoxItem("Tổng c\x00f4ng", 0, -1), new ImageComboBoxItem("Ng\x00e0y c\x00f4ng thực tế, c\x00f4ng t\x00e1c", 1, -1), new ImageComboBoxItem("Nghỉ chế độ", 2, -1), new ImageComboBoxItem("Nghỉ ph\x00e9p năm", 3, -1), new ImageComboBoxItem("Nghỉ b\x00f9", 4, -1), new ImageComboBoxItem("Nghỉ c\x00f3 l\x00fd do", 5, -1), new ImageComboBoxItem("Nghỉ kh\x00f4ng l\x00fd do", 6, -1), new ImageComboBoxItem("Tổng giờ", 7, -1), new ImageComboBoxItem("Đi trễ", 8, -1), new ImageComboBoxItem("Về sớm", 9, -1), new ImageComboBoxItem("Tăng ca ng\x00e0y thường", 10, -1), new ImageComboBoxItem("Tăng ca chủ nhật", 11, -1), new ImageComboBoxItem("Tăng ca ng\x00e0y lễ", 12, -1), new ImageComboBoxItem("Tăng ca đ\x00eam ng\x00e0y thường", 13, -1), new ImageComboBoxItem("Tăng ca đ\x00eam ng\x00e0y chủ nhật", 14, -1), new ImageComboBoxItem("Tăng ca đ\x00eam ng\x00e0y lễ", 15, -1), 
                new ImageComboBoxItem("L\x00e0m việc ri\x00eang", 0x10, -1), new ImageComboBoxItem("Tổng giờ tăng ca", 0x11, -1), new ImageComboBoxItem("L\x00e0m đ\x00eam", 0x12, -1)
             });
            this.repFilter.Name = "repFilter";
            this.repFilter.NullText = "[Chọn loại thống k\x00ea]";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.ItemShortcut = new BarShortcut(Keys.Control | Keys.P);
            this.bbiPrint.Name = "bbiPrint";
            item.Text = "Ctrl+P";
            tip.Items.Add(item);
            this.bbiPrint.SuperTip = tip;
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 0x11;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.ItemShortcut = new BarShortcut(Keys.Control | Keys.E);
            this.bbiExport.Name = "bbiExport";
            item2.Text = "Ctrl+E";
            tip2.Items.Add(item2);
            this.bbiExport.SuperTip = tip2;
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 8;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.ItemShortcut = new BarShortcut(Keys.F5);
            this.bbiReload.Name = "bbiReload";
            item3.Text = "F5";
            tip3.Items.Add(item3);
            this.bbiReload.SuperTip = tip3;
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 12;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.ItemShortcut = new BarShortcut(Keys.F10);
            this.bbiClose.Name = "bbiClose";
            item4.Text = "F10";
            tip4.Items.Add(item4);
            this.bbiClose.SuperTip = tip4;
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft });
            this.dockManager1.Form = this;
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 0x261);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("d7780374-5c6d-46c9-b880-4e1e6733d6b5");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(0x108, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 0;
            this.dockPanel1.Size = new Size(0x108, 0x261);
            this.dockPanel1.Text = "Ph\x00f2ng Ban V\x00e0 Tổ Nh\x00f3m";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x19);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x102, 0x245);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(0x102, 0x245);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 1;
            this.xucOrganization1.Title = "";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.bbiFormula.Caption = "Thiết Lập C\x00f4ng Thức";
            this.bbiFormula.Id = 10;
            this.bbiFormula.ImageIndex = 0;
            this.bbiFormula.Name = "bbiFormula";
            this.repEmployeeName.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployeeName.Appearance.Options.UseFont = true;
            this.repEmployeeName.AutoHeight = false;
            this.repEmployeeName.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployeeName.Name = "repEmployeeName";
            this.repEmployeeName.NullText = "[T\x00ean nh\x00e2n vi\x00ean]";
            this.repEmployeeName.ReadOnly = true;
            this.repEmployee.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployee.Appearance.Options.UseFont = true;
            this.repEmployee.AutoHeight = false;
            this.repEmployee.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployee.Name = "repEmployee";
            this.repEmployee.NullText = "[Chọn nh\x00e2n vi\x00ean]";
            this.repEmployee.View = this.repositoryItemGridLookUpEdit1View;
            this.repositoryItemGridLookUpEdit1View.Columns.AddRange(new GridColumn[] { this.colEmployeeCode, this.colFirstName, this.colLastName });
            this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View";
            this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowAutoFilterRow = true;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
            this.colEmployeeCode.Caption = "M\x00e3";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.repDepartment.AutoHeight = false;
            this.repDepartment.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repDepartment.Name = "repDepartment";
            this.repBranch.AutoHeight = false;
            this.repBranch.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repBranch.Name = "repBranch";
            this.repGroup.AutoHeight = false;
            this.repGroup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repGroup.Name = "repGroup";
            this.gridView1.Columns.AddRange(new GridColumn[] { this.colSymbolCode, this.colSymbolName });
            this.gridView1.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gridView1.Name = "gridView1";
            this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gridView1.OptionsView.ShowGroupPanel = false;
            this.colSymbolCode.Caption = "M\x00e3 k\x00fd hiệu";
            this.colSymbolCode.FieldName = "SymbolCode";
            this.colSymbolCode.Name = "colSymbolCode";
            this.colSymbolCode.Visible = true;
            this.colSymbolCode.VisibleIndex = 0;
            this.colSymbolName.Caption = "T\x00ean k\x00fd hiệu";
            this.colSymbolName.FieldName = "SymbolName";
            this.colSymbolName.Name = "colSymbolName";
            this.colSymbolName.Visible = true;
            this.colSymbolName.VisibleIndex = 1;
            this.gridColumn1.Caption = "gridColumn1";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "gridColumn2";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x1a);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x41e, 0x261);
            this.gcList.TabIndex = 6;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Appearance.Row.Options.UseTextOptions = true;
            this.gbList.Appearance.Row.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new GridColumn[] { this.gridColumn3, this.gridColumn4, this.gridColumn5, this.colMonth1, this.colMonth2, this.colMonth3, this.colMonth4, this.colMonth5, this.colMonth6, this.colMonth7, this.colMonth8, this.colMonth9, this.colMonth10, this.colMonth11, this.colMonth12, this.colTotal });
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsCustomization.AllowFilter = false;
            this.gbList.OptionsCustomization.AllowSort = false;
            this.gbList.OptionsFilter.AllowColumnMRUFilterList = false;
            this.gbList.OptionsFilter.AllowFilterEditor = false;
            this.gbList.OptionsFilter.AllowMRUFilterList = false;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.AllowCellMerge = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gridColumn3.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gridColumn3.AppearanceHeader.Options.UseFont = true;
            this.gridColumn3.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.gridColumn3.FieldName = "EmployeeCode";
            this.gridColumn3.Fixed = FixedStyle.Left;
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowEdit = false;
            this.gridColumn3.OptionsColumn.ReadOnly = true;
            this.gridColumn3.Visible = true;
            this.gridColumn3.VisibleIndex = 0;
            this.gridColumn3.Width = 0x41;
            this.gridColumn4.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gridColumn4.AppearanceHeader.Options.UseFont = true;
            this.gridColumn4.Caption = "Họ l\x00f3t";
            this.gridColumn4.FieldName = "FirstName";
            this.gridColumn4.Fixed = FixedStyle.Left;
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.OptionsColumn.AllowEdit = false;
            this.gridColumn4.OptionsColumn.ReadOnly = true;
            this.gridColumn4.Visible = true;
            this.gridColumn4.VisibleIndex = 1;
            this.gridColumn4.Width = 100;
            this.gridColumn5.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gridColumn5.AppearanceHeader.Options.UseFont = true;
            this.gridColumn5.Caption = "T\x00ean";
            this.gridColumn5.FieldName = "LastName";
            this.gridColumn5.Fixed = FixedStyle.Left;
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit = false;
            this.gridColumn5.OptionsColumn.ReadOnly = true;
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 2;
            this.gridColumn5.Width = 0x30;
            this.colMonth1.AppearanceCell.BackColor = SystemColors.Info;
            this.colMonth1.AppearanceCell.Options.UseBackColor = true;
            this.colMonth1.Caption = "Th\x00e1ng 1";
            this.colMonth1.ColumnEdit = this.repCalculator;
            this.colMonth1.FieldName = "M1";
            this.colMonth1.Name = "colMonth1";
            this.colMonth1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth1.OptionsColumn.ReadOnly = true;
            this.colMonth1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth1.Visible = true;
            this.colMonth1.VisibleIndex = 3;
            this.colMonth1.Width = 70;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.DisplayFormat.FormatString = "{0:##,##0}";
            this.repCalculator.EditFormat.FormatString = "{0:##,##0}";
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colMonth2.AppearanceCell.BackColor = Color.SeaShell;
            this.colMonth2.AppearanceCell.Options.UseBackColor = true;
            this.colMonth2.Caption = "Th\x00e1ng 2";
            this.colMonth2.ColumnEdit = this.repCalculator;
            this.colMonth2.FieldName = "M2";
            this.colMonth2.Name = "colMonth2";
            this.colMonth2.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth2.OptionsColumn.ReadOnly = true;
            this.colMonth2.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth2.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth2.Visible = true;
            this.colMonth2.VisibleIndex = 4;
            this.colMonth2.Width = 70;
            this.colMonth3.AppearanceCell.BackColor = SystemColors.Info;
            this.colMonth3.AppearanceCell.Options.UseBackColor = true;
            this.colMonth3.Caption = "Th\x00e1ng 3";
            this.colMonth3.ColumnEdit = this.repCalculator;
            this.colMonth3.FieldName = "M3";
            this.colMonth3.Name = "colMonth3";
            this.colMonth3.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth3.OptionsColumn.ReadOnly = true;
            this.colMonth3.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth3.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth3.Visible = true;
            this.colMonth3.VisibleIndex = 5;
            this.colMonth3.Width = 70;
            this.colMonth4.AppearanceCell.BackColor = Color.SeaShell;
            this.colMonth4.AppearanceCell.Options.UseBackColor = true;
            this.colMonth4.Caption = "Th\x00e1ng 4";
            this.colMonth4.ColumnEdit = this.repCalculator;
            this.colMonth4.FieldName = "M4";
            this.colMonth4.Name = "colMonth4";
            this.colMonth4.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth4.OptionsColumn.ReadOnly = true;
            this.colMonth4.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth4.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth4.Visible = true;
            this.colMonth4.VisibleIndex = 6;
            this.colMonth4.Width = 70;
            this.colMonth5.AppearanceCell.BackColor = SystemColors.Info;
            this.colMonth5.AppearanceCell.Options.UseBackColor = true;
            this.colMonth5.Caption = "Th\x00e1ng 5";
            this.colMonth5.ColumnEdit = this.repCalculator;
            this.colMonth5.FieldName = "M5";
            this.colMonth5.Name = "colMonth5";
            this.colMonth5.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth5.OptionsColumn.ReadOnly = true;
            this.colMonth5.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth5.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth5.Visible = true;
            this.colMonth5.VisibleIndex = 7;
            this.colMonth5.Width = 70;
            this.colMonth6.AppearanceCell.BackColor = Color.SeaShell;
            this.colMonth6.AppearanceCell.Options.UseBackColor = true;
            this.colMonth6.Caption = "Th\x00e1ng 6";
            this.colMonth6.ColumnEdit = this.repCalculator;
            this.colMonth6.FieldName = "M6";
            this.colMonth6.Name = "colMonth6";
            this.colMonth6.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth6.OptionsColumn.ReadOnly = true;
            this.colMonth6.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth6.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth6.Visible = true;
            this.colMonth6.VisibleIndex = 8;
            this.colMonth6.Width = 70;
            this.colMonth7.AppearanceCell.BackColor = SystemColors.Info;
            this.colMonth7.AppearanceCell.Options.UseBackColor = true;
            this.colMonth7.Caption = "Th\x00e1ng 7";
            this.colMonth7.ColumnEdit = this.repCalculator;
            this.colMonth7.FieldName = "M7";
            this.colMonth7.Name = "colMonth7";
            this.colMonth7.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth7.OptionsColumn.ReadOnly = true;
            this.colMonth7.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth7.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth7.Visible = true;
            this.colMonth7.VisibleIndex = 9;
            this.colMonth7.Width = 70;
            this.colMonth8.AppearanceCell.BackColor = Color.SeaShell;
            this.colMonth8.AppearanceCell.Options.UseBackColor = true;
            this.colMonth8.Caption = "Th\x00e1ng 8";
            this.colMonth8.ColumnEdit = this.repCalculator;
            this.colMonth8.FieldName = "M8";
            this.colMonth8.Name = "colMonth8";
            this.colMonth8.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth8.OptionsColumn.ReadOnly = true;
            this.colMonth8.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth8.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth8.Visible = true;
            this.colMonth8.VisibleIndex = 10;
            this.colMonth8.Width = 70;
            this.colMonth9.AppearanceCell.BackColor = SystemColors.Info;
            this.colMonth9.AppearanceCell.Options.UseBackColor = true;
            this.colMonth9.Caption = "Th\x00e1ng 9";
            this.colMonth9.ColumnEdit = this.repCalculator;
            this.colMonth9.FieldName = "M9";
            this.colMonth9.Name = "colMonth9";
            this.colMonth9.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth9.OptionsColumn.ReadOnly = true;
            this.colMonth9.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth9.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth9.Visible = true;
            this.colMonth9.VisibleIndex = 11;
            this.colMonth9.Width = 70;
            this.colMonth10.AppearanceCell.BackColor = Color.SeaShell;
            this.colMonth10.AppearanceCell.Options.UseBackColor = true;
            this.colMonth10.Caption = "Th\x00e1ng 10";
            this.colMonth10.ColumnEdit = this.repCalculator;
            this.colMonth10.FieldName = "M10";
            this.colMonth10.Name = "colMonth10";
            this.colMonth10.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth10.OptionsColumn.ReadOnly = true;
            this.colMonth10.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth10.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth10.Visible = true;
            this.colMonth10.VisibleIndex = 12;
            this.colMonth10.Width = 70;
            this.colMonth11.AppearanceCell.BackColor = SystemColors.Info;
            this.colMonth11.AppearanceCell.Options.UseBackColor = true;
            this.colMonth11.Caption = "Th\x00e1ng 11";
            this.colMonth11.ColumnEdit = this.repCalculator;
            this.colMonth11.FieldName = "M11";
            this.colMonth11.Name = "colMonth11";
            this.colMonth11.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth11.OptionsColumn.ReadOnly = true;
            this.colMonth11.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth11.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth11.Visible = true;
            this.colMonth11.VisibleIndex = 13;
            this.colMonth11.Width = 70;
            this.colMonth12.AppearanceCell.BackColor = Color.SeaShell;
            this.colMonth12.AppearanceCell.Options.UseBackColor = true;
            this.colMonth12.Caption = "Th\x00e1ng 12";
            this.colMonth12.ColumnEdit = this.repCalculator;
            this.colMonth12.FieldName = "M12";
            this.colMonth12.Name = "colMonth12";
            this.colMonth12.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colMonth12.OptionsColumn.ReadOnly = true;
            this.colMonth12.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMonth12.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMonth12.Visible = true;
            this.colMonth12.VisibleIndex = 14;
            this.colMonth12.Width = 70;
            this.colTotal.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colTotal.AppearanceCell.Options.UseFont = true;
            this.colTotal.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colTotal.AppearanceHeader.Options.UseFont = true;
            this.colTotal.Caption = "Tổng số ng\x00e0y";
            this.colTotal.ColumnEdit = this.repCalculator;
            this.colTotal.FieldName = "Total";
            this.colTotal.Fixed = FixedStyle.Right;
            this.colTotal.Name = "colTotal";
            this.colTotal.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colTotal.OptionsColumn.ReadOnly = true;
            this.colTotal.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTotal.SummaryItem.FieldName = "TotalSalary";
            this.colTotal.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTotal.Visible = true;
            this.colTotal.VisibleIndex = 15;
            this.colTotal.Width = 0x61;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucTimekeeperTotalYear";
            base.Size = new Size(0x431, 0x27b);
            this.barManager1.EndInit();
            this.repYear.EndInit();
            this.repFilter.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.imageCollection2.EndInit();
            this.repEmployeeName.EndInit();
            this.repEmployee.EndInit();
            this.repositoryItemGridLookUpEdit1View.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.repDepartment.EndInit();
            this.repBranch.EndInit();
            this.repGroup.EndInit();
            this.gridView1.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repCalculator.EndInit();
            base.ResumeLayout(false);
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                this.gcList.DataSource = new HRM_TIMEKEEPER().GetListTotalYear(Level, Code, this.m_Year, this.m_Filter);
            }
            catch
            {
            }
        }

        private void LoadSymbol()
        {
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void repYear_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void repYear_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Year = Convert.ToDateTime(e.NewValue.ToString()).Year;
        }

        public delegate void ClosedHander(object sender);
    }
}

